#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void reverse_string(char* string)
{
	int tmp,left,right;
	int a = sizeof(string) / sizeof(string[0]);
	left = 0;
	right = string[a];
	tmp = *string;
	*string = string[a];
	string[a] = '\0';
	if (left < right)
		reverse_string(string - 1);
	string[a] = tmp;
}
int main()
{
	char a[] = "abcdef";
	reverse_string(a);
	printf("%s", a);
}